package cn.hn3l.agriculture.entitis.goods;

import cn.hn3l.agriculture.entitis.behoof.Crop;
import cn.hn3l.agriculture.entitis.behoof.Sympton;
import cn.hn3l.agriculture.entitis.pictures.Picture;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;
import java.util.TreeSet;

/**
 * @Author Wang Weiwei
 * @Since 16-10-17
 * @Describe
 */
public class Goods {
    private int id;
    @Size(min = 1,max = 200,message = "商品名字太短了!!!")
    private String goodsName;
    private List<Picture> pictures;
    //生产厂商
    private Productor productor;

    //规格
    private String standard;

    //描述信息
    private String describe;

    //商品条码
    private String code;
    //适用作物
    private TreeSet<Crop> crop;

    //适用症状
    private TreeSet<Sympton> sympton;
    private GoodsType type;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Productor getProductor() {
        return productor;
    }

    public void setProductor(Productor productor) {
        this.productor = productor;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public GoodsType getType() {
        return type;
    }

    public void setType(GoodsType type) {
        this.type = type;
    }


    public TreeSet<Sympton> getSympton() {
        return sympton;
    }

    public void setSympton(TreeSet<Sympton> sympton) {
        this.sympton = sympton;
    }

    public TreeSet<Crop> getCrop() {
        return crop;
    }

    public void setCrop(TreeSet<Crop> crop) {
        this.crop = crop;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Picture> getPictures() {
        return pictures;
    }

    public void setPictures(List<Picture> pictures) {
        this.pictures = pictures;
    }
}
